{template '_header'}
<div class="page-header">当前位置： <span class="text-primary">商品核销统计</span> </div>

<div class="page-content">
    <form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" name="m" value="mx_shop" />
        <input type="hidden" name="do" value="web" />
        <input type="hidden" name="r" value="store.verify.log" />
        <div class="page-toolbar">
            <div class="col-sm-9" style='padding-right:0; width: 67.5%'>
                <div class="input-group " >
                    {php echo tpl_daterange('verifydate', array('sm'=>true,'placeholder'=>'核销时间'),true);}
                    {php echo tpl_daterange('buydate', array('sm'=>true,'placeholder'=>'购买时间'),true);}
                </div>
            </div>
            <div class="input-group " >
                <div class="input-group-select">
                    <select name='searchfield'  class='form-control  input-sm select-md'    >
                        <option value='goodtitle' {if $_GPC['searchfield']=='goodtitle'}selected{/if}>商品名称</option>
                        <option value='ordersn' {if $_GPC['searchfield']=='ordersn'}selected{/if}>订单号</option>
                        <option value='verifyid' {if $_GPC['searchfield']=='verifyid'}selected{/if}>核销ID</option>
                        <option value='store' {if $_GPC['searchfield']=='store'}selected{/if}>核销门店</option>
                    </select>
                </div>
                <input type="text" class="form-control input-sm"  name="keyword" value="{$_GPC['keyword']}" placeholder="请输入关键词" />
                    <span class="input-group-btn">
                    <button class="btn btn-primary" type="submit"> 搜索</button>
                </span>
            </div>
        </div>

    </form>
    {if count($list)>0}
    <table class="table table-responsive">
        <thead class="navbar-inner">
        <tr>
            <th >记次时商品信息</th>
            <th style='width:100px;'>订单号</th>
            <th style='width:95px;'>核销时间</th>
            <th style='width:95px;'>购买时间</th>
            <th style='width:55px;'>购买人</th>
            <th style='width:100px;'>手机号</th>
            <th style='width:70px;'>核销人</th>
            <th style='width:70px;'>核销门店</th>
            <th >备注信息</th>
        </tr>
        </thead>
        <tbody>
        {loop $list $row}
        <tr>
            <td>
                <img src='{php echo tomedia($row['thumb'])}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' onerror="this.src='../addons/mx_shop/static/images/nopic.png'"/>
                {$row['title']}
            </td>
            <td>{$row['ordersn']}</td>
            <td>{php echo date('Y-m-d',$row['verifydate'])}</td>
            <td>{php echo date('Y-m-d',$row['paytime'])}</td>
            <td>
                {$row['username']}
            </td>
            <td>
                {$row['mobile']}
            </td>
            <td>
                {$row['salername']}
            </td>
            <td>
                {$row['storename']}
            </td>
            <td>
                {$row['remarks']}
            </td>
        </tr>

        {/loop}
        </tbody>
        <tfoot>
            <tr>
                <td colspan="9" class="text-right">  {$pager}</td>
            </tr>
        </tfoot>
    </table>
{else}
    <div class='panel panel-default'>
        <div class='panel-body' style='text-align: center;padding:30px;'>
            暂时没有任何商品
        </div>
    </div>
{/if}
</div>

{template '_footer'}